package cn.jslancer.spider;

import java.util.Collection;
import java.util.List;

/**
 * @author jslancer
 * @date 2017/11/5
 */
public abstract class Spider<T> {

    protected String startUrl;

    public abstract T parseData(String url, String response);

    public abstract List<String> parseUrls(String url, String response);

    public void setStartUrl(String startUrl) {
        this.startUrl = startUrl;
    }

    public String getStartUrl() {
        return startUrl;
    }
}
